Field device switch monitoring

ABSTRACT

An industrial process field device includes an active component, a switch, a switch monitor, and a controller. The active component may be a sensor configured to sense a process parameter, or a control device configured to control a process of the industrial process. The switch is electrically coupled to first and second terminals. The switch monitor is configured to detect an open or closed state of the switch, and generate a first state output, a second state output, or a chattering state output. An anti-chatter circuit outputs a chatter stabilized state output based on the chattering state output. The controller is configured to set the switch in the open or closed state, and generate a notification based on any one of the first and second state outputs and the chatter stabilized state output that indicates at least one of the current state and a condition of the switch.

BACKGROUND

Embodiments of the present disclosure relate to industrial process control systems. More specifically, embodiments of the present disclosure relate to an industrial process field device having a switch monitor for monitoring a state of a switch of the field device.

In industrial settings, control systems are used to monitor and control inventories of industrial and chemical processes, and the like. Typically, the control system performs these functions using industrial process field devices distributed at key locations in the industrial process and coupled to the control circuitry in the control system by a process control loop. The term “field device” refers to any device that performs a function in a distributed control or process monitoring system, including all devices currently known, or yet to be known, that are used in the measurement, control, and/or monitoring of industrial processes.

Typical field devices include device circuitry that enables the field device to perform conventional field device tasks such as process parameter monitoring and measurements using one or more sensors, and/or process control operations using one or more control devices. Exemplary sensors include pressure sensors, level sensors, temperature sensors, and other sensors used in industrial processes. Exemplary control devices include actuators, solenoids, valves, and other control devices.

The device circuitry of field devices may also include a controller that is used to control the sensors and/or control devices, and communicate with a process control system, or other circuitry, over a process control loop, such as a 4-20 mA process control loop, for example. In some installations, the process control loop is used to deliver a regulated current and/or voltage to the field device for powering the field device. The process control loop can also carry data, such as a process parameter value corresponding to a sensed process parameter. This data may be communicated over the process control loop as an analog signal, or as a digital signal.

SUMMARY

Embodiments of the present disclosure are directed to field devices for an industrial process, industrial process control systems, and methods of controlling an external device using an industrial process field device. One embodiment of the field device includes an active component, a switch, a switch monitor, and a controller. The active component may be a sensor configured to sense a process parameter, or a control device configured to control a process of the industrial process. Preferably, the switch is electrically coupled to first and second terminals and is configured to electrically connect the first and second terminals when in a closed state, and electrically disconnect the first and second terminals when in an open state. The switch monitor is configured to detect a current state of the switch corresponding to the closed state or open state, and generate a state output indicating the current state. The state output being a first state output indicating the open state of the switch when the switch is in the open state, a second state output indicating the closed state of the switch when the switch is in the closed state and the switch is connected to a direct current, and a chattering state output indicating the closed state of the switch when the switch is in the closed state and the switch is connected to an alternating current. An anti-chatter circuit of the switch monitor is configured to output a chatter stabilized state output having a stabilized DC voltage based on the chattering state output. The controller is configured to set the switch in the open or closed state, and generate a notification based on any one of the first state output, the second state output, and the chatter stabilized state output that indicates the current state of the switch and/or a condition of the switch.

One embodiment of the industrial process control system includes the above-described field device, an external device, and a power supply. The external device is electrically coupled to the switch through the first terminal. The power supply is electrically coupled to the switch through the second terminal, and is configured to power the external device through the switch. Power is supplied to the external device when the switch is in the closed state, and power is disconnected from the external device when the switch is in the open state.

In one embodiment of the method, a process parameter of an industrial process is sensed, or the industrial process is controlled using an active component of the field device. A switch of the field device is set to a current state corresponding to an open state, in which electrical power from an external power supply is disconnected from the external device, or a closed state, in which electrical power from the external power supply is connected to the external device, using a switch drive signal generated by a controller of the field device. An electrical parameter indicating the current state of the switch is detected using a switch monitor of the field device. A state output indicating the current state is generated based on the detected electrical parameter using the switch monitor, the state output being a first state output indicating the open state of the switch when the switch is in the open state, a second state output indicating the closed state of the switch when the switch is in the closed state and the electrical power comprises a direct current, and a chattering state output indicating the closed state of the switch when the switch is in the closed state and the electrical power comprises an alternating current. A chatter stabilized state output having a stabilized DC voltage is produced based on the chattering state output indicating the closed state of the switch using an anti-chatter circuit of the switch monitor. A notification is generated based on any one of the first state output, the second state output, and the chatter stabilized state output that indicates the current state of the switch and/or a condition of the switch using the controller.

This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1 and 2 are simplified diagrams of exemplary process control systems, in accordance with embodiments of the present disclosure.

FIG. 3 is a simplified block diagram of the switch monitor 140, in accordance with embodiments of the present disclosure.

FIGS. 4 and 5 are circuit diagrams of exemplary switch monitors of an industrial process field device, in accordance with embodiments of the present disclosure.

FIG. 6 illustrates a chart of an alternating current voltage delivered to a switch of a field device, and a chart of a state output generated by an exemplary switch monitor of an industrial process field device, in accordance with embodiments of the present disclosure.

FIGS. 7 and 8 are charts showing an example of a relationship between a switch control signal and a state output of the switch monitor of FIG. 3 over time when the switch being monitored is respectively powered by a 20 VDC power supply and a 250 VAC power supply, in accordance with embodiments of the present disclosure.

FIG. 9 is a simplified circuit diagram of switch monitoring circuitry that includes an anti-chatter circuit, in accordance with embodiments of the present disclosure.

FIG. 10 is a simplified circuit diagram of an example of an anti-chatter circuit, in accordance with embodiments of the present disclosure.

FIG. 11 is a truth table for a D-type flip flop.

FIG. 12 is a truth table for the anti-chatter circuit of FIG. 10 .

FIG. 13 includes a series of charts illustrating a simulation example of the operation of the switch monitor and anti-chatter circuits.

FIG. 14 is a flowchart illustrating a method of controlling an external device using an industrial process field device, in accordance with embodiments of the present disclosure.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

Embodiments of the present disclosure are described more fully hereinafter with reference to the accompanying drawings. Elements that are identified using the same or similar reference characters refer to the same or similar elements. The various embodiments of the present disclosure may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present disclosure to those skilled in the art.

Embodiments of the present disclosure are generally directed to industrial process field devices, industrial process control systems that include the field device, and methods of controlling an external device using the field device. FIGS. 1 and 2 are simplified diagrams of exemplary process measurement or control systems 100, in accordance with embodiments of the present disclosure.

The system 100 includes an industrial process field device 102 that may interact with an industrial process 104. In some embodiments, the process 104 involves a material, such as a fluid, transported through pipes, such as pipe 105 (FIG. 1 ), and/or contained in tanks, for example, that is processed by the system 100. This processing of the material generally transforms the material from a less valuable state into more valuable and useful products, such as petroleum, chemicals, paper, food, etc. For example, an oil refinery performs industrial processes that can process crude oil into gasoline, fuel oil, and other petrochemicals.

The field device 102 may communicate with a computerized control unit 106 that may be configured to control the field device 102. The control unit 106 may be remotely located from the field device, such as in a control room for the system 100, as shown in FIG. 1 .

The control unit 106 may be communicatively coupled to the field device 102 over a suitable physical communication link or a wireless communication link. For example, the control unit may be coupled to the field device over a control loop 107. Communications between the control unit 106 and the field device 102 may be performed over the control loop 107 in accordance with conventional analog and/or digital communication protocols. In some embodiments, the process control loop 107 includes a 4-20 milliamp process control loop, in which a process variable may be represented by a level of a loop current I (FIG. 2 ) flowing through the process control loop 107. Exemplary digital communication techniques include digital signals that are modulated onto the analog current level of the two-wire process control loop 107, such as the HART® communication standard. Other purely digital techniques may also be employed including FieldBus and Profibus communication protocols. The control unit 106 may include a power source that powers the field device 102 over the control loop 107.

In some embodiments, the field device 100 includes a controller 108, an active component in the form of one or more sensors or control devices 110, measurement or control circuitry 112, a digital-to-analog converter (DAC) 114, a communications circuit 115, and/or a terminal block 116, as shown in the simplified diagram of FIG. 2 . The controller 108 may represent one or more processors (i.e., microprocessor, central processing unit, etc.) that control components of the field device 100 to perform one or more functions described herein in response to the execution of instructions, which may be stored locally in non-transitory, patent subject matter eligible, computer readable media or memory 118 of the device 100. In some embodiments, the processors of the controller 108 are components of one or more computer-based systems. In some embodiments, the controller 108 includes one or more control circuits, microprocessor-based systems, one or more programmable hardware components, such as a field programmable gate array (FPGA), that are used to control components of the device 100 to perform one or more functions described herein. The controller 108 may also represent other conventional field device circuitry.

The field device 102 may be used to sense or measure a parameter of the process 104, such as a temperature, a level, a pressure, a flow rate, or another parameter of the process 104 using one or more sensors represented by block 110 in FIG. 2 . Exemplary sensors 110 include pressure sensors, temperature sensors, level sensors, flow rate sensors, and/or other sensors used to sense or measure a process parameter.

The field device 100 may also be configured to control an aspect of the process 104 using one or more control devices represented by block 110 in FIG. 2 . Exemplary control devices 110 include actuators, solenoids, valves, and other conventional process control devices used in field devices to control a process.

The measurement or control circuitry 112 represents circuitry that interacts with the sensor or the control device 110. For instance, the circuitry 112 may include measurement circuitry that translates an output from a sensor 110 for use by a controller 108 of the field device. The DAC 114 may be used by the controller 108 to convert digital signals into analog signals that are communicated to the control unit 106 using the communications circuit 115, such as over the two-wire process control loop 107 by adjusting the loop current I to indicate a value of a process parameter sensed by the sensor 110, for example. The circuitry 112 may also be used to control a control device 110, such as in response to commands from the control unit 106 or other location that are received by the controller 108 through the communications circuit 115, for example.

Embodiments of the present disclosure are directed to a field device 102 that includes a switch 120. The switch 120 may be electrically coupled to a power supply 124 and a device 126, which are external to the field device 102, such as through the terminal block 116. Thus, embodiments of the power supply 124 and the device 126 are separate from the field device 102. The controller 108 controls the switch 120 to electrically connect or disconnect electrical power from the power supply 124 to the device 126. Exemplary embodiments of the device 126 include, for example, a pump, a compressor, a solenoid, or another device that may be suitable for use with the system 100.

The switch 120 may take on any suitable form. For example, the switch 120 may include a latching relay or another suitable switch. Additionally, while only a single switch 120 is illustrated, it is understood that the field device 102 may include multiple switches 120 that may be coupled to, for example, the terminal block 116, and are each controlled by the controller 108.

In some embodiments, the controller 108 selectively sets (i.e., controls, actuates or toggles) the switch 120 between a closed state, in which the switch 120 connects the device 126 to electrical power from the power supply 124, and an open state in which the switch 120 disconnects the device 126 from the power supply 124. Thus, the device 126 may be activated during or in response to the switch 120 being set to the closed state, and the device 126 is deactivated in response to the switch 120 being set to the open state. In some embodiments, the setting of the state of the switch 120 occurs in response to a switch drive or control signal 128 from the controller 108.

In some embodiments, the controller 108 is configured to set the switch 120 in either the open or closed state in response to processor-executed instructions based on one or more settings. The settings and programmed instructions may be stored in the memory 118 as settings 130, memory of the control unit 106, and/or stored in another suitable location. The settings 130 may include user-defined settings, such as threshold values and/or other switch control parameters.

In one embodiment, the controller 108 sets the switch 120 in the open or closed state in response to a sensed parameter (e.g., pressure, level, flow, temperature, etc.) detected by the sensor 110. For example, the controller 108 may compare a sensed parameter value output from the circuitry 112 based on a parameter output from the sensor 110 to a setting 130, such as a user-defined threshold value, and set the switch 120 to a predetermined open or closed state using the drive signal 128 when the sensed parameter value meets a predetermined relationship to the threshold value.

Alternatively, the control unit 106 may receive the sensed parameter value from the field device 102, and issue a command to the controller 108, such as over the control loop 107, to set the switch 120 in a desired state, when the sensed parameter value meets a predetermined relationship to a setting 130, such as a user-defined threshold value. The controller 108 then produces the drive signal 128 to set the switch 120 in the desired state in response to the command from the control unit 106.

In one example, the field device 102 may include a level sensor 110 that senses a level in a tank, and communicates the sensed level to the control unit 106 using the communications circuit 115. When the level output generated by the sensor 110 indicates a sensed level that falls below a threshold value (e.g., setting 130), the controller 108 may be configured, or commanded by the control unit 106, to set the switch 120 in the closed state to activate an external pump (device 126) and drive additional material into the tank. After the level sensed by the sensor 110 reaches another threshold level (setting 130), such as one indicating that the tank is full, the controller 108 may be configured or commanded to open the switch 120 and deactivate the pump.

In another embodiment, the controller 108 sets the switch 120 in the open or closed state in response to a state of the control device 110 using the switch drive signal 128. Alternatively, the control unit 106 may issue a command to the controller 108 to set the switch 120 in either the open or closed state based on a state of the control device 110. Here, the control device 110 includes at least two different states, such as, for example, an open or closed state of a valve, a position of an actuator or solenoid, or another state of the control device 110. For example, when the control device 110 is a valve and the device 126 is a pump, the controller 108 may be configured or commanded to set the switch 120 in the closed state when the valve is open to activate the pump and drive a flow of material through the valve, and the controller 108 may be configured or commanded to set the switch 120 to the open position when the valve is closed to deactivate the pump.

It is important that the switch 120 operates properly by achieving the intended open or closed state. An undetected failure of the switch 120 to enter a desired state set by the controller 108 could lead to a multitude of issues including, for example, safety issues, regulatory issues, process quality issues, and other possible issues, that could lead to plant shut-downs and lengthy troubleshooting and repair measures. For example, if the controller 108 sends a drive signal 128 to transition the switch 120 from the closed state to the open state to deactivate a pump (device 126) filling a tank with a fluid, but the switch 120 fails to transition to the open state, the pump may continue to operate, which could result in the fluid overflowing the tank among other potential problematic outcomes. Such switch failures generally require immediate attention to mitigate potential damage. Unfortunately, it would generally be too time consuming and costly to provide sufficient manual supervision of the field devices 102 within an industrial system to identify failed or failing switches 120.

Embodiments of the field device 102 in accordance with the present disclosure include a switch monitor 140 (FIG. 2 ) that may be used to verify that the switch 120 of the field device 102 is operating as intended. The switch monitor 140 may be electrically coupled to the power supply 124 and the device 126 through, for example, the terminal block 116, as indicated in FIG. 2 . In some embodiments, the switch monitor 140 is configured to handle power supplies 124 that provide a direct current (DC) or a DC voltage, such as 20-60 VDC, or an alternating current (AC) or an AC voltage, such as 20-250 VAC.

In some embodiments, the switch monitor 140 is configured to detect (e.g., sense or measure) a current state (i.e., open or closed) of the switch 120, and generate a state output 142 indicating the current state of the switch 120. The controller 108 is configured to generate a notification 144 based on the state output 142. The notification 144 may be transmitted to the control unit 106 or another location using a wired (e.g., control loop 107) or wireless communication link, using the communications circuit 115, for example.

Embodiments of the notification 144 indicate the current state of the switch 120, and/or whether the switch 120 is operating properly or not (i.e., a condition of the switch 120). The notification 144 may take on any suitable form. Exemplary notifications 144 include or trigger: an alarm (audible and/or visible); a status report presented on a display, such as on a display of the control unit 106; an analog or digital communication or message over a wireless or wired communication link, such as a communication or setting delivered over the process control loop 107; or another notification. For example, the notification 144 may be transmitted using the communications circuit 115 by setting the loop current I to a predetermined level, or one of a plurality of predetermined levels, each of which indicates a different notification.

In some embodiments, the controller 108 generates the notification 144 based on a comparison between the state output 142 and the intended state of the switch corresponding to the switch drive signal 128, which sets the state of the switch 120 based on a sensed parameter, a command, and/or a state of a control device, as discussed above. This comparison may be conducted using a comparator circuit 146 that compares the state output 142 and the switch drive signal 128, and outputs a signal 148 based on the comparison. The signal 148 may indicate a correspondence between the switch drive signal 128 and the state output 142, such as when the switch drive signal 128 is configured to set the switch 120 in the open state and the state output 142 indicates that the switch 120 is in the open state. In this case, the switch 120 is presumed to be operating properly. Alternatively, the signal 148 may indicate a conflict between the switch drive signal 128 and the state output 142, such as when the switch drive signal 128 is configured to set the switch 120 in the open state and the state output 142 indicates that the switch 120 is in the closed state. In this case, the switch 120 is presumed to be operating improperly. The notification 144 may be generated by the controller 108 in response to the signal 148 to indicate the proper or improper operation of the switch 120. Additionally, the notification 144 may indicate the current state of the switch 120 indicated by the switch output 142, and/or the intended state of the switch 120 corresponding to the switch drive signal 128.

In some embodiments, the controller 108 generates the notification 144 based on a comparison between the state output 142 and a switch setting 150, which may be stored in the memory 118, for example, as shown in FIG. 2 . The switch setting 150 indicates the intended or desired open or closed state of the switch 120. Thus, the switch setting 150 generally corresponds to the switch drive signal 128 that sets the state of the switch 120, and may be based on a sensed parameter, a state of a control device, and/or a command, as discussed above. The controller 108 determines whether there is correspondence between the switch setting 150 and the state output 142, which indicates that the switch 120 is operating properly, or a conflict between the switch setting 150 and the state output 142, which indicates that the switch 120 is operating improperly. The notification 144 is generated by the controller 108 to indicate the proper or improper operation of the switch 120. Additionally, the notification 144 may indicate the current state of the switch 120 indicated by the switch output 142, and/or the intended state of the switch 120 indicated by the switch setting 150.

In some embodiments, the switch monitor 140 comprises circuitry that detects (i.e., senses or measures) an electrical parameter that indicates the current state (i.e., open or closed) of the switch 120, and generates the state output 142 based on the detected electrical parameter. Embodiments of the electrical parameter include a voltage (AC or DC) across the switch 120, a current (AC or DC) through the switch 120, or another suitable electrical parameter. In some embodiments, the switch monitor 140 generates a state output 142 based on the detected electrical parameter that indicates the current state of the switch 120.

In some embodiments, the state output 142 corresponds to two distinct voltage values: one being a fixed or stabilized logic or digital low voltage representing a digital 0 value, and one being a fixed or stabilized logic or digital high voltage representing a digital 1 value. One of these values may be used to represent an open state of the switch 120, while the other is used to represent a closed state of the switch 120. This selection may depend on the application (e.g., a normally open vs. a normally closed switch application). For the present disclosure, the logic low voltage or digital 0 value will be used to represent an open state of the switch 120, and the logic high voltage or digital 1 value will represent a closed state of the switch 120.

FIG. 3 is a simplified block diagram of the switch monitor 140, in accordance with embodiments of the present disclosure. In one embodiment, the switch monitor 140 includes circuitry forming a differential 151 amplifier and a comparator 152. The differential amplifier is connected to terminals 153 and 154 of the switch 120, which may be terminals of the terminal block 116 that are connected to the power supply 124 and a load corresponding to the attached device 126, as shown in FIG. 2 , and generates an output of a differential voltage 155 based on a voltage difference across the terminals 153 and 154, or a current through the switch 120. The comparator generally compares the output from the differential amplifier to a reference voltage and generates the state output 142 based on the comparison.

FIGS. 4 and 5 are circuit diagrams of exemplary switch monitors 140A and 140B in accordance with embodiments of the present disclosure. The exemplary switch monitor 140A is configured to produce the state output 142 based on a voltage (AC or DC) across the switch 120, and the exemplary switch monitor 140B is configured to produce the state output 142 (i.e., an analog voltage) based on a current I_(S) (AC or DC) through the switch 120. The switch monitors 140A and 140B are each coupled to terminals 153 and 154. The power supply 124 is generally represented by an AC or DC voltage supply 156 and a resistance 158, which is coupled to the terminal 153. The device 126 is electrically coupled to the terminal 154 and the supply 156 or electrical ground/common.

In some embodiments, the differential amplifier 151 of the switch monitor 140A includes a voltage rectifier 160 that allows the switch monitor 140A to operate during a negative wave cycle of an AC waveform supplied by the power supply 124. In one exemplary embodiment, the rectifier 160 includes a diode 162 and a capacitor 164. The diode 162 blocks the negative cycle portion of an AC waveform produced by the power supply 124. The capacitor 164 charges during the positive cycle of an AC waveform, and slowly decays during the negative cycle of the AC waveform while the diode 162 is blocking the waveform. The capacitor 164 is appropriately sized to substantially maintain the voltage charge attained during the positive cycle of the AC waveform during the negative cycle of the AC waveform.

The differential amplifier 151 may include resistors 166, 168, 170 and 172 and an operational amplifier (op-amp) 174 having a positive power supply input coupled to a supply voltage Vs, and a negative power supply input coupled to electrical ground 175. The ratio of the resistors 166 and 170, and the resistors 168 and 172 set the gain for the op-amp 174 to detect the voltage difference across the switch 120 and between the terminals 153 and 154, which is indicated by the differential voltage output 155. The resistances of the resistors 166, 168, 170 and 172 are large to reduce the large AC/DC sensed voltages to levels that that are within the working range of the lower voltage state monitor circuitry.

The comparator 152 of the switch monitor 140A may include an op-amp 178 having a positive power supply input coupled to the supply voltage Vs, and a negative power supply input coupled to electrical ground 175. The op-amp 178 compares the voltage difference across the switch 120 indicated by the differential voltage output 155 to a threshold voltage, which is set by the voltage divider formed by resistors 180 and 182, and outputs the state output 142 based on the comparison. The threshold voltage may be adjusted to correctly trigger across the range of voltages being switched by the switch 120. Additional circuitry, such as that described below, may be used to process the output 142 or isolate the output 142 before processing by a microprocessor of the controller 108, for example.

FIG. 6 illustrates two charts comparing an AC voltage from the power supply 124 delivered to the switch 120 with the state output 142 generated by the exemplary switch monitor 140A of FIG. 4 . During a time period t₀-t₁, the switch 120 is in the open state, and the voltage across the switch 120 mirrors the AC voltage supplied by the power supply 124. For this example, the switch monitor 140A produces a logic low state output 142 for the open state of the switch 120. At time t₁, the switch 120 is closed. This causes a current to flow through the switch 120 and to the device 126. Additionally, the voltage across the switch 120 drops substantially close to zero. This change in the voltage across the switch 120 results in the switch monitor 140A producing a logic high state output 142.

The exemplary switch monitor 140B (FIG. 5 ) is configured to produce the state output 142 based on a current I_(S) (AC or DC) through the switch 120. The switch 140B includes a differential amplifier 151 that is coupled to the terminals 153 and 154, which may be, for example, terminals of the terminal block 116, as shown in FIG. 2 . The differential amplifier 151 of the switch monitor 140B may include the voltage rectifier 160 of the circuit 140A formed by the diode 162 and the capacitor 164, which operates as described above.

The differential amplifier of the switch monitor 140B may include resistors 186, 188, 190 and 192 and an op-amp 194 having a positive power supply input coupled to a supply voltage Vs, and a negative power supply input coupled to electrical ground 195. The ratio of the resistors 186 and 190, and the resistors 188 and 192 set the gain for the op-amp 194 to detect the voltage difference across a resistor 196 that is in series with the switch 120. The resistances of the resistors 186, 188, 190 and 192 are large to reduce the large AC/DC sensed voltages to levels that that are within the working range of the lower voltage state monitor circuitry. The op-amp 194 outputs a voltage difference signal 198 based on the voltage across the resistor 196 in response to the current I_(S).

The signal 198 from the op-amp 194 of the differential amplifier 151 is an analog voltage that is proportional to the current through the resistor 196. Using the known value of the resistor 196, and the analog voltage of the state output 142, the comparator 152 may process the signal 198 and compare it to a reference and produce the corresponding state output 142, which may be processed by the controller 108. Additional circuitry may be used to process the output 142 or isolate the output 142 before processing by a microprocessor of the controller 108, for example. The controller 108 may also operate as the comparator 152 and process the signal 198 from the differential amplifier 151 based on the value of the resistor 196 and determine the current I_(S). The current I_(S) may then be compared to a setting to determine if the switch 102 (e.g., a normally open or a normally closed switch) is in the open or closed state.

The embodiments of the switch monitor 140 described above operate to provide a single detection level state output 142 for a wide range of input voltages from the power supply 124, such as a DC voltage of 20-60 VDC, and an AC voltage of 20-250 VAC. Since the threshold of the comparator 152 must be set low enough to detect the possible range of voltages (e.g., 20-60 VDC) across the switch 120 (e.g., across the terminals 153 and 154), the switch monitor 140 may be susceptible to noise influence and AC coupling. This can result in digital output chattering (i.e., continually switching between high and low states) of the state output 142 rather than the desired fixed high output when the switch 120 is closed (no voltage across the switch).

An example of a situation resulting in a chattering state output 142 will be described with reference to FIGS. 7 and 8 , which are charts showing a relationship between the switch control signal 128 (FIG. 2 ) and the state output 142 over time when the switch 120 is powered by a 20 VDC power supply 124, and a 250 VAC power supply 124, respectively. When the switch control signal 128 at time t₀ changes the state of the switch 120, which is powered by a 20 VDC power supply, from open to closed, a voltage difference is no longer present across the switch 120 resulting in a high logic voltage (digital 1) state output 142 at time t₁, as indicated in FIG. 7 .

However, when the switch 120 is powered by a 250 VAC power supply 124, and the switch control signal 128 at time t₀ changes the state of the switch 120 from open to closed, the state output chatters between the low and high logic voltages beginning at time t₁, as indicated in FIG. 8 , as a result of noise (e.g., EMC, AC coupling from an adjacent switch or power supply, etc.). With the occurrence of this chattering of the state output 142, there is a chance that the controller 108 will detect a false reading of the state of the switch 120, and issue a false notification 144 of a switch failure. Such a false diagnostic notification 144 can produce serious ramifications, such as a process shutdown, wasted time and money investigating the failure notification, as well as reduced confidence in the performance of the field device 102.

In some embodiments, the switch monitor 140 includes an anti-chatter circuit that operates to stabilize a chattering state output 142 under closed switch and certain AC voltage power conditions, while generally passing or reproducing the state output 142 under other power and state conditions of the switch 120.

This modification is generally illustrated in the simplified circuit diagram of FIG. 9 . The anti-chatter circuit 200 receives the state output 142 and produces a stabilized state output 142′ in response. Here, the differential amplifier 151 and the comparator 152 operate substantially as described above with reference to FIGS. 3-6 , for example, and produces the state output 142 depending on the sensed conditions. The stabilized state output 142′ replaces the state output 142 of FIG. 2 , and is used by the controller 108 to determine the current state of the switch 120, and generate the notification 144 as described above.

When the switch 120 is in the open state, when the switch 120 is connected to a 20-60 VDC power supply 124, or under another scenario that does not produce a chattering state output 142, the stabilized state output 142′ produced by anti-chatter circuit 200 generally mirrors that of the state output 142. That is, the stabilized state output substantially mirrors the state output when the state output 142 is either the fixed or stable logic low or high voltage signal. However, when the switch 120 is closed and is coupled to a 20-250 VAC, such as 250 VAC, and the state output 142 is chattering, the stabilized state output 142′ produced by the anti-chattering circuit 200 corresponds to the desired logic voltage output (e.g., fixed high logic voltage) of the anticipated correct state signal 142 for the closed state of the switch 120. As a result, the anti-chatter circuit 200 corrects the deficiency described above and reduces the likelihood that a false diagnostic notification 144 will be issued by the field device 102.

The anti-chatter circuit 200 may take on numerous forms. One example of the circuit 200 is illustrated in the simplified diagram of FIG. 10 , in which a D-type flip flop 204 is used. FIG. 11 is a truth table for the D-type flip flop 204.

As indicated in FIG. 10 , the D input of the flip flop 204 is pulled to digital high voltage (V_(DD)). The clock pin (CLK) of the flip flop 204 is driven with the state output 142 from the switch monitor 140. The clear pin (CLR) of the flip flop 204 is used to reset the output of the circuit 200 using the switch control signal 128. This enables the Q output of the flip flop 204 to stay high when it sees a rising edge on the state output 142, and since the stabilized state output 142′ is read by the controller 108 after every state change, a pulse will clear the Q output to a logic or digital low voltage prior to each measurement.

In operation, when the controller 108 issues a state control signal 128 (e.g., voltage pulse) to change the state of the switch 120, the state control signal 128 will also clear the Q output of the flip flop 204 due to its connection to the CLR input. In one embodiment, on startup, an initial reset switch control signal 128 to ensure a known state output 142 is produced.

Since the D input is pulled to logic voltage high, the Q output will either stay low or transition high based on the presence of a rising edge on the CLK input driven by the state output 142. The truth table shown in FIG. 12 shows that, in the case that the state output 142 (CLK input) is chattering (FIG. 8 ) due to a closed state condition of the switch 120 and AC power to the terminals 153 and 154 of the switch, the Q output will transition high and stay high, thereby eliminating the chattering and producing the desired logic high voltage to indicate the closed state of the switch 120.

In some embodiments, after the controller 108 sends the switch control signal or pulse 128, it briefly waits to allow the switch monitor 140 and the anti-chatter circuit 200 to settle before measuring the stabilized state output 142′.

In some embodiments, the anti-chatter circuit includes an OR gate 206 that receives the Q output from the flip flop 204, and the state output 142, and operates to prevent a false trip for the condition in which the switch 120 is initially closed. For example, with power supplied to the switch 120 and the switch 120 initially in the closed state, the state output 142 would be a logic high voltage. However, during the initial startup, the switch control signal 128 may clear the Q output to the logic low voltage and, since there is never a rising edge present on the clock input (CLK), Q will remain at a logic low voltage, but it should be a logic high voltage to indicate that the switch 120 is closed. By feeding the Q output and the state output 142 into the OR gate 206, this condition is resolved and the final stabilized state output 142′ would remain high during this startup period, thus indicating the correct state of the switch 120.

FIG. 13 includes a series of charts illustrating a simulation example of the operation of the switch monitor 140 and the anti-chatter circuit 200, when the power supply 124 provides AC power to the terminals 153 and 154 of the switch 120 that are connected to a load or device 126. Parasitic capacitance and AC noise was added to the simulation to trip the threshold during switch closure.

Initially, the controller 108 generates a switch control signal or pulse 128 to change the switch 120 from an open state to a closed state. This closure of the switch is illustrated by the plot of the current through the switch 120.

As indicated by the chart, these events result in a state output 142 from the switch monitor 140 that is chattering. However, the anti-chatter circuit 200 eliminates the chattering of the state output 142 resulting in the fixed stabilized state output 142′. Shortly after another switch control signal or pulse 128 is generated by the controller 128, the switch 120 is opened, and the state output 142 and the stabilized state output 142′ transitions to the logic low voltage.

Additional embodiments of the present disclosure are directed to methods of controlling an external device 126 using an industrial process field device 102, which is formed in accordance with one or more embodiments described herein. FIG. 14 is a flowchart illustrating one embodiment of the method.

At 210 of the method, a process parameter of an industrial process 104 is sensed, or the process 104 is controlled using an active component 110 of the field device 102. Thus, the active component may be in the form of a sensor that senses a process parameter, or a control device that controls a process, as discussed above.

At 212, a switch 120 of the field device 102 is set to a current state corresponding to either an open state, in which electrical power from an external power supply 124 is disconnected from the external device 126, or a closed state, in which electrical power from the external power supply 124 is connected to the external device 126. In some embodiments, the switch 120 is set to the current state in response to a switch control signal 128 generated by a controller 108 of the field device 102, as discussed above.

At 214, an electrical parameter indicating the current state of the switch 120 is detected (i.e., sensed or measured) using a switch monitor 140 of the field device 102. As discussed above, embodiments of the electrical parameter include a voltage (AC or DC) across the switch 120 and a current (AC or DC) through the switch 120.

At 216, a state output 142 indicating the current state based on the detected electrical parameter is generated using the switch monitor 140. The state output 142 being a first state output, such as a logic low voltage, indicating the open state of the switch 120 when the switch 120 is in the open state; a second state output, such as a logic high voltage, indicating the closed state of the switch 120 when the switch 120 is in the closed state and the electrical power supplied by the power supply 124 comprises a direct current; and a chattering state output indicating the closed state of the switch 120 when the switch 120 is in the closed state and the electrical power comprises an alternating current.

At 218, a chatter stabilized state output 142′ having a stabilized DC voltage is produced by an anti-chatter circuit 200 of the switch monitor 140 based on the chattering state output indicating the closed state of the switch 120.

At 220, a notification is generated based on any one of the first state output, the second state output and the chatter stabilized state output using the controller 108. Each of these state outputs may be produced by the anti-chatter circuit 200 based on the state output 142. As discussed above, the notification 144 may indicate the current state of the switch 120, and/or whether the switch 120 is operating properly or not.

Although the embodiments of the present disclosure have been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the present disclosure. 

What is claimed is:
 1. A field device for an industrial process comprising: an active component selected from the group consisting of a sensor configured to sense a process parameter, and a control device configured to control a process of the industrial process; a switch electrically coupled to first and second terminals and configured to electrically connect the first and second terminals when in a closed state, and electrically disconnect the first and second terminals when in an open state; a switch monitor configured to generate a state output based on an electrical parameter of the switch, the state output being a first state output indicating the open state of the switch when the switch is in the open state, a second state output indicating the closed state of the switch when the switch is in the closed state, and a chattering state output indicating the closed state of the switch when the switch is in the closed state, the chattering state output comprising a signal that alternates between the first and second state outputs due to noise introduced into the switch monitor; an anti-chatter circuit of the switch monitor configured to output a chatter stabilized state output having a stabilized DC voltage based on the chattering state output indicating the closed state of the switch; and a controller configured to set the switch in one of the open and closed states, and generate a notification based on any one of the first state output, the second state output, and the chatter stabilized state output that indicates at least one of the current state of the switch and a condition of the switch.
 2. The field device of claim 1, wherein: one of the first state output and the second state output comprises a logic low voltage; the other of the first and second state output comprises a logic high voltage; and the chattering state signal comprises a voltage that alternates between the logic low voltage and the logic high voltage.
 3. The field device of claim 2, wherein the switch monitor comprises: a differential amplifier configured to output a differential voltage based on a voltage difference between the first and second terminals of the switch or a current through the switch; and a comparator configured to output one of the first state output, the second state output and the chattering state signal based on the differential voltage.
 4. The field device of claim 3, wherein the anti-chatter circuit is configured to output a first stabilized state output based on the first state output that substantially mirrors the first state output, and output a second stabilized state output based on the second state output that substantially mirrors the second state output.
 5. The field device of claim 4, wherein: the controller sets the switch in the open or closed state using a switch control signal; the anti-chatter circuit comprises a D-type flip flop having a clear (CLR) input that receives the switch control signal, a clock (CLK) input that receives the state output, and a D input that receives a logic high voltage; and the chatter stabilized state output, the first stabilized state output, and the second stabilized state output are produced at a Q output of the flip flop based on the state output.
 6. The field device of claim 5, wherein the anti-chatter circuit includes an OR gate connected to the Q output and the state output.
 7. The field device of claim 1, wherein the controller generates the notification based on a comparison of any one of the first stabilized state output, the second stabilized state output, and the chatter stabilized state output, to a switch setting indicating an intended state of the switch.
 8. The field device of claim 1, wherein: the controller is configured to set the switch in the open or closed state using a switch control signal; and the controller generates the notification based on a comparison of any one of the first stabilized state output, the second stabilized state output, and the chatter stabilized state output, to the switch control signal.
 9. The field device of claim 1, wherein: the controller is configured to set the switch in the open or closed state using a switch control signal; the active component comprises the sensor having a parameter output corresponding to a sensed process parameter; and the controller is configured to set the switch in one of the open and closed states based on the parameter output using the switch control signal.
 10. The field device of claim 9, wherein: the sensor is selected from the group consisting of a pressure sensor, a level sensor, a flow sensor, and a temperature sensor; the device includes measurement circuitry configured to generate a parameter value based on the parameter output; and the controller is configured to communicate the parameter value and the notification to a remote location using a communications circuit.
 11. The field device of claim 1, wherein: the controller is configured to set the switch in the open or closed state using a switch control signal; the active component comprises the control device, which is selected from the group consisting of an actuator, a valve, and a solenoid; the control device includes at least two different states; and the controller is configured to set the switch in one of the open and closed states based on the state of the control device using the switch control signal.
 12. An industrial process control system comprising: a field device comprising: an active component selected from the group consisting of a sensor configured to sense a process parameter, and a control device configured to control a process of the industrial process; a switch electrically coupled to first and second terminals and configured to electrically connect the first and second terminals when in a closed state, and electrically disconnect the first and second terminals when in an open state; a switch monitor configured to generate a state output based on an electrical parameter of the switch, the state output being a first state output indicating the open state of the switch when the switch is in the open state, a second state output indicating the closed state of the switch when the switch is in the closed state, and a chattering state output indicating the closed state of the switch when the switch is in the closed state, the chattering state output comprising a signal that alternates between the first and second state outputs due to noise introduced into the switch monitor; an anti-chatter circuit of the switch monitor configured to output a chatter stabilized state output having a stabilized DC voltage based on the chattering state output indicating the closed state of the switch; and a controller configured to set the switch in one of the open and closed states, and generate a notification based on any one of the first state output, the second state output, and the chatter stabilized state output that indicates at least one of the current state of the switch and a condition of the switch; an external device electrically coupled to the switch through the first terminal; and a power supply electrically coupled to the switch through the second terminal and configured to power the external device through the switch; wherein power is supplied to the external device when the switch is in the closed state, and power is disconnected from the external device when the switch is in the open state.
 13. The system of claim 12, wherein: one of the first state output and the second state output comprises a logic low voltage; the other of the first and second state output comprises a logic high voltage; and the chattering state signal comprises a voltage that alternates between the logic low voltage and the logic high voltage.
 14. The system of claim 13, wherein the switch monitor comprises: a differential amplifier configured to output a differential voltage based on a voltage difference between the first and second terminals of the switch or a current through the switch; and a comparator configured to output one of the first state output, the second state output and the chattering state signal based on the differential voltage.
 15. The system of claim 14, wherein the anti-chatter circuit is configured to output a first stabilized state output based on the first state output that substantially mirrors the first state output, and output a second stabilized state output based on the second state output that substantially mirrors the second state output.
 16. The system of claim 15, wherein: the controller sets the switch in the open or closed state using a switch control signal; the anti-chatter circuit comprises a D-type flip flop having a clear (CLR) input that receives the switch control signal, a clock (CLK) input that receives the state output, and a D input that receives a logic high voltage; and the chatter stabilized state output, the first stabilized state output, and the second stabilized state output are produced at a Q output of the flip flop based on the state output.
 17. The system of claim 16, wherein the anti-chatter circuit includes an OR gate connected to the Q output and the state output.
 18. The system of claim 12, wherein the controller generates the notification based on a comparison of any one of the first stabilized state output, the second stabilized state output, and the chatter stabilized state output, to a switch setting indicating an intended state of the switch.
 19. The field device of claim 12, wherein: the controller is configured to set the switch in the open or closed state using a switch control signal; and the controller generates the notification based on a comparison of any one of the first stabilized state output, the second stabilized state output, and the chatter stabilized state output, to the switch control signal.
 20. A method of controlling an external device using an industrial process field device comprising: sensing a process parameter of an industrial process or controlling the industrial process using an active component of the field device; setting a switch of the field device to a current state corresponding to one of an open state, in which electrical power from an external power supply is disconnected from an external device, and a closed state, in which electrical power from the external power supply is connected to the external device, using a switch control signal generated by a controller of the field device; detecting an electrical parameter indicating the current state of the switch using a switch monitor of the field device; generating a state output indicating the current state based on the detected electrical parameter using the switch monitor, the state output being a first state output indicating the open state of the switch when the switch is in the open state, a second state output indicating the closed state of the switch when the switch is in the closed state, and a chattering state output indicating the closed state of the switch when the switch is in the closed state, the chattering state output comprising a signal that alternates between the first and second state outputs due to noise introduced into the detected electrical parameter; producing a chatter stabilized state output having a stabilized DC voltage based on the chattering state output indicating the closed state of the switch using an anti-chatter circuit of the switch monitor; and generating a notification based on any one of the first state output, the second state output, and the chatter stabilized state output that indicates at least one of the current state of the switch, a condition of the switch, and whether the state output aligns with an intended state of the switch corresponding to a switch setting, using the controller. 